
{%for way in ways %}  


<div id = "{{ forloop.counter0 }}_nodepad" onclick="editWay( {{ forloop.counter0 }}); return false;" onmouseover="pointWay( {{ forloop.counter0 }} ); return false;" onmouseout="whiteWay( {{ forloop.counter0 }} ); return false;" class="imgdata">

	<form action="#" id="{{ forloop.counter0 }}_nodeform" >
  
		<p class="banner" >
		<button type="button" style="float:right" class="nav" onclick="deleteWay({{ forloop.counter0  }})" > Delete </button>
 		POSITION: <input class="invisiForm" type="input" onchange="wayReorder( {{ forloop.counter0 }} , this.value)" name="position" size=2 value="{{ forloop.counter0 }} "/> (Edit number to change position)
   		</p>

	  	<ul>
		<li>
		  	LATITUDE: <em>*</em> &nbsp;  &nbsp; &nbsp; 
      		 	<input class="invisiForm" type = "input" onchange="wayUpdate( {{ forloop.counter0 }}, this.name, this.value )" name="latitude" value="{{ way.latitude }} "/> 
   		  <li>
		 	 LONGITUDE: <em>*</em>  &nbsp;  
		 	<input class="invisiForm"  type = "input" onchange="wayUpdate( {{ forloop.counter0 }}, this.name, this.value )" name="longitude" value=" {{ way.longitude }}"/> 
		 <li>
		 	 HEADING:  &nbsp;  &nbsp;  &nbsp;  &nbsp;  
		 	<input class="invisiForm"  type = "input" onchange="wayUpdate( {{ forloop.counter0 }}, this.name, this.value )" name="heading" value=" {{ way.heading }}"/>
		<li>	ZOOM:  &nbsp;  &nbsp;  &nbsp;  &nbsp;  &nbsp;  
			<input class="invisiForm" type="input" onchange="wayUpdate( {{ forloop.counter0 }}, this.name, this.value )" name="zoom" value="{{ way.zoom }}"/>
		 <li>  
		 	 DESCRIPTION: &nbsp;   
		 	<textarea class="invisiForm"  type = "input" onchange="wayUpdate( {{ forloop.counter0 }}, this.name, this.value )" name="description" />{{ way.description }}</textarea>
			IMAGE:  &nbsp;  &nbsp;  
		 	<input class="invisiForm"  type = "input" onchange="wayUpdate( {{ forloop.counter0 }}, this.name, this.value )" name="image" value=" {{ way.img }}"/>
		 <li>
	  	</ul>
	

  	</form>
        <img src="{{ way.img }}?imgmax=512" alt="{{way.heading}}"  />
</div> 
	
<button type="button" class="nav" onclick="addNewWay({{ forloop.counter0 }})" >Insert New Node  </button>


{%endfor%}




